package com.business.action.oa;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class ReportDayBean {

	// 序号
	private int index = 0;

	// 工号
	private String workNo = null;

	// 姓名
	private String userName = null;

	private double day1 = 0;
	private double day2 = 0;
	private double day3 = 0;
	private double day4 = 0;
	private double day5 = 0;
	private double day6 = 0;
	private double day7 = 0;
	private double day8 = 0;
	private double day9 = 0;
	private double day10 = 0;
	private double day11 = 0;
	private double day12 = 0;
	private double day13 = 0;
	private double day14 = 0;
	private double day15 = 0;
	private double day16 = 0;
	private double day17 = 0;
	private double day18 = 0;
	private double day19 = 0;
	private double day20 = 0;
	private double day21 = 0;
	private double day22 = 0;
	private double day23 = 0;
	private double day24 = 0;
	private double day25 = 0;
	private double day26 = 0;
	private double day27 = 0;
	private double day28 = 0;
	private double day29 = 0;
	private double day30 = 0;
	private double day31 = 0;

	public void setData(int day, Double d) {
		switch (day) {
		case 1:
			day1 = d;
			break;
		case 2:
			day2 = d;
			break;
		case 3:
			day3 = d;
			break;
		case 4:
			day4 = d;
			break;
		case 5:
			day5 = d;
			break;
		case 6:
			day6 = d;
			break;
		case 7:
			day7 = d;
			break;
		case 8:
			day8 = d;
			break;
		case 9:
			day9 = d;
			break;
		case 10:
			day10 = d;
			break;
		case 11:
			day11 = d;
			break;
		case 12:
			day12 = d;
			break;
		case 13:
			day13 = d;
			break;
		case 14:
			day14 = d;
			break;
		case 15:
			day15 = d;
			break;
		case 16:
			day16 = d;
			break;
		case 17:
			day17 = d;
			break;
		case 18:
			day18 = d;
			break;
		case 19:
			day19 = d;
			break;
		case 20:
			day20 = d;
			break;
		case 21:
			day21 = d;
			break;
		case 22:
			day22 = d;
			break;
		case 23:
			day23 = d;
			break;
		case 24:
			day24 = d;
			break;
		case 25:
			day25 = d;
			break;
		case 26:
			day26 = d;
			break;
		case 27:
			day27 = d;
			break;
		case 28:
			day28 = d;
			break;
		case 29:
			day29 = d;
			break;
		case 30:
			day30 = d;
			break;
		case 31:
			day31 = d;
			break;
		default:
			break;
		}
	}
}
